package com.midou.administration.controller;

import com.midou.administration.entity.Ingredientstype;
import com.midou.administration.service.impl.IngredientsTypeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/administration/ingredientstype")
public class IngredientsTypeController {
    @Autowired
    private IngredientsTypeServiceImpl typeService;

    @RequestMapping("tall")
    public List<Ingredientstype> Tall(){
        return typeService.Tall();
    }
}
